home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
tcpatch.arc
/
AUTOPA.BAT
next >
Wrap
DOS Batch File
|
1987-07-12
|
4KB
|
92 lines
Echo Off
Rem
Rem This batch file will automate the process of appling patches to
Rem Turbo/C compiler and compiler/editor. Once the patches have been
Rem applied they will be appended into a single file 'PATCHED.TC' and
Rem 'PATCHED.TCC' so that you can browse them later.
Rem
Rem Note, as noted in the PATCH.DOC file, there may be a case that one
Rem patch must be applied before another. In these cases I suggest you
Rem apply the patch manually.
Rem
Rem Note, below you'll see multiple FOR's with masks such as
Rem ??????TC.DIF, ?????TC.DIF, ????TC.DIF, ???TC.DIF, ??TC.DIF
Rem ?TC.DIF etc. The mutilple formats for the generic file name
Rem should handle any patch that Borland comes out with, as long
Rem as the filename ends in TC or TCC.
Rem
Rem Make a backup of the current TC.EXE file before continuing.
Rem
COPY TC.EXE TC.OLD
Rem
Rem Create a file so that we can put the date/time in PATCHED.TC. This
Rem was the only way I could find to put the date into the PATCHED.TC
Rem files w/i a batch file.
Rem
Del PATCHED.ON
Echo X > PATCHED.ON
Echo . >> PATCHED.TC
Echo . The following patches were applied on the date shown in 'PATCHED ON' >> PATCHED.TC
Echo .
Dir PATCHED.ON >> PATCHED.TC
Dir *.DIF >> PATCHED.TC
Echo . >> PATCHED.TC
Echo . The following is the contents of the above files >> PATCHED.TC
Echo . >> PATCHED.TC
For %%F In (??????TC.DIF) DO TYPE %%F >> PATCHED.TC
For %%F In (?????TC.DIF) DO TYPE %%F >> PATCHED.TC
For %%F In (????TC.DIF) DO TYPE %%F >> PATCHED.TC
For %%F In (???TC.DIF) DO TYPE %%F >> PATCHED.TC
For %%F In (??TC.DIF) DO TYPE %%F >> PATCHED.TC
For %%F In (?TC.DIF) DO TYPE %%F >> PATCHED.TC
Echo . >> PATCHED.TC
Echo . The following is the output of the PATCH process for each of the above >> PATCHED.TC
Echo . >> PATCHED.TC
Echo On
For %%F In (??????TC.DIF) DO PATCH %%F TC.EXE >> PATCHED.TC
For %%F In (?????TC.DIF) DO PATCH %%F TC.EXE >> PATCHED.TC
For %%F In (????TC.DIF) DO PATCH %%F TC.EXE >> PATCHED.TC
For %%F In (???TC.DIF) DO PATCH %%F TC.EXE >> PATCHED.TC
For %%F In (??TC.DIF) DO PATCH %%F TC.EXE >> PATCHED.TC
For %%F In (?TC.DIF) DO PATCH %%F TC.EXE >> PATCHED.TC
Echo Off
Rem
Rem Now, do the same for TCC files
Rem
COPY TCC.EXE TCC.OLD
Echo . >> PATCHED.TCC
Echo . The following patches were applied on the date shown in 'PATCHED ON' >> PATCHED.TCC
Echo .
Dir PATCHED.ON >> PATCHED.TCC
Dir *.DIF >> PATCHED.TCC
Echo . >> PATCHED.TCC
Echo . The following is the contents of the above files >> PATCHED.TCC
Echo . >> PATCHED.TCC
For %%F In (?????TCC.DIF) DO TYPE %%F >> PATCHED.TCC
For %%F In (????TCC.DIF) DO TYPE %%F >> PATCHED.TCC
For %%F In (???TCC.DIF) DO TYPE %%F >> PATCHED.TCC
For %%F In (??TCC.DIF) DO TYPE %%F >> PATCHED.TCC
For %%F In (?TCC.DIF) DO TYPE %%F >> PATCHED.TCC
Echo . >> PATCHED.TCC
Echo . The following is the output of the PATCH process for each of the above >> PATCHED.TCC
Echo . >> PATCHED.TCC
Echo On
For %%F In (?????TCC.DIF) DO PATCH %%F TCC.EXE >> PATCHED.TCC
For %%F In (????TCC.DIF) DO PATCH %%F TCC.EXE >> PATCHED.TCC
For %%F In (???TCC.DIF) DO PATCH %%F TCC.EXE >> PATCHED.TCC
For %%F In (??TCC.DIF) DO PATCH %%F TCC.EXE >> PATCHED.TCC
For %%F In (?TCC.DIF) DO PATCH %%F TCC.EXE >> PATCHED.TCC
Echo Off
Del PATCHED.ON
For %%F In (??????TC.DIF) DO DEL %%F
For %%F In (?????TC.DIF) DO DEL %%F
For %%F In (????TC.DIF) DO DEL %%F
For %%F In (???TC.DIF) DO DEL %%F
For %%F In (??TC.DIF) DO DEL %%F
For %%F In (?TC.DIF) DO DEL %%F
For %%F In (?????TCC.DIF) DO DEL %%F
For %%F In (????TCC.DIF) DO DEL %%F
For %%F In (???TCC.DIF) DO DEL %%F
For %%F In (??TCC.DIF) DO DEL %%F
For %%F In (?TCC.DIF) DO DEL %%F